package com.hcbd.tdwt.ui.haige.common.activity;

import android.annotation.SuppressLint;
import android.content.Intent;


import com.hcbd.tdwt.R;
import com.hcbd.tdwt.base.BaseActivity;
import com.hcbd.tdwt.base.bd.BdToolFactory;


import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EActivity;

@SuppressLint("NonConstantResourceId")
@EActivity(R.layout.activity_splash_haige)
public class SplashActivity extends BaseActivity {
    @AfterViews
    protected void init() {
        BdToolFactory.newInstance(BdToolFactory.HAI_GE_BG_TYPE);
        Thread mThread=new Thread(){
            @Override
            public void run() {
                super.run();
                try {
                    sleep(3000);//使程序休眠3秒
                    Intent intent=new Intent(getApplicationContext(), MainActivity_.class);
                    startActivity(intent);
                    finish();
                }catch (Exception e){
                    e.printStackTrace();
                }
            }
        };
        mThread.start();
    }
}
